Skip to content

Conversation

@mgaffigan
Copy link
Contributor

Allow specifying a proxy for http API connections via mirthApi.http.proxyHost.

Example invocation: -DmirthApi.http.proxyHost=127.0.0.1. Example file attached showing login with no channels.

Example with Fiddler:
image

Closes #190

Copy link
Contributor

@kpalang kpalang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good in general.
One small things is I would like to see a log about the usage of a proxy. Possibly at INFO level since OIE logs at ERROR by default.

@kpalang kpalang requested review from a team, gibson9583, kayyagari, kpalang and pacmano1 and removed request for a team November 3, 2025 08:23
@mgaffigan
Copy link
Contributor Author

@kpalang, added info log message.

kpalang
kpalang previously approved these changes Nov 7, 2025
Copy link
Member

@tonygermano tonygermano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A couple suggestions:

  1. I would like to avoid adding something new containing "mirth." How about oie.client.api.http.proxyHost and oie.client.api.http.proxyPort for the property names?
  2. Create some private final fields in the class to hold the property names rather than referencing them directly in the code.
  3. Assuming this will all be squashed to one commit at the end, flesh out the commit message to include why this is being added and example usage. Add a trailer linking it to the issue. I usually do this by just typing at the end Issue: <full URL to github issue> so it shows up just above the sign-off.

Adds support for the client to connect to the server via an HTTP proxy.
Client examines the engine.http.proxyHost and engine.http.proxyPort
system properties to determine the proxy to use.

Closes OpenIntegrationEngine#190 in OIE
Signed-off-by: Mitch Gaffigan <mitch.gaffigan@comcast.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[IDEA] Allow use of a proxy to debug Mirth Client API calls

3 participants